Repository navigation
fix: store and return engine auth context - #456
Conversation
🦋 Changeset detectedLatest commit: b2fd6f9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
🟡 Changes recommended
Existing tests bypass authorization-context persistence, leaving redirect/resume behavior across hook remounts, missing-verifier handling, and five-minute expiration without regression coverage.
1 open issue
What changed in this PR
This PR adds frontend support for the signed authorization context introduced in backend PR #551, preserving it across same-tab redirects and forwarding callback issuer information for backend validation.
Changes:
- Store and return authorization context, with a five-minute pending-flow lifetime.
- Forward callback
stateandiss, rejecting duplicateissparameters. - Add callback and transport regression tests and a patch changeset.
| File | Description |
|---|---|
src/pages/OpenIDFlowCallback/OpenIDFlowCallback.tsx |
Forward iss and reject duplicate parameters. |
src/pages/OpenIDFlowCallback/OpenIDFlowCallback.test.tsx |
Test single, absent, and duplicate iss values. |
src/lib/openid-flow/types/OID4VCITypes.ts |
Define authorization context and response issuer fields. |
src/lib/openid-flow/transports/OIDFlowWebSocketTransport.ts |
Map authorization context and send callback validation fields. |
src/lib/openid-flow/__tests__/OIDFlowWebSocketTransport.test.ts |
Test live and resumed authorization payloads. |
src/hooks/useOID4VCIFlow.ts |
Persist and restore context; shorten pending-flow lifetime. |
.changeset/new-lies-film.md |
Record the patch release change. |
Review effort: Balanced
|




Summary
Frontend part of sirosfoundation/go-wallet-backend#551
Type of change
Related issues / tickets
Changes
Architecture decisions
Screenshots / recordings (if UI changes)
How to test
Checklist
Security checklist
Notes for reviewers